<?php
/**
 * Created by IntelliJ IDEA.
 * User: haoya_Coding_one
 * Date: 2019/3/23
 * Time: 10:54
 */
// 应用目录为当前目录
define('APP_PATH', __DIR__.'/');
// 开启调试模式
define('APP_DEBUG', true);
// 网站根URL
define('APP_URL', substr_replace('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], '', -10));
// 加载框架

/*echo 'HTTP_HOST：'.$_SERVER['HTTP_HOST'];
echo 'SERVER_NAME：'.$_SERVER['SERVER_NAME'];
echo 'SERVER_PORT：'.$_SERVER['SERVER_PORT'];
echo 'PHP_SELF：'.$_SERVER['PHP_SELF'];*/
//echo substr_replace('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], '', -10);
//var_dump(getallheaders());

require './myphp/MyPHP.php';
